package com.qboot.system.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qboot.system.entity.SysPermission;
import com.qboot.system.mapper.SysPermissionMapper;
import com.qboot.system.service.SysPermissionService;
import com.qboot.system.vo.SysPermissionVo;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 权限 接口实现类
 *
 * @author Tellsea
 * @date 2022-12-17
 */
@Service
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements SysPermissionService {

    @Override
    public Page<SysPermissionVo> queryList(Page page, SysPermissionVo entity) {
        return this.baseMapper.queryList(page, entity);
    }

    @Override
    public SysPermissionVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
